package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.UserInfo;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface UserInfoRepository extends MongoRepository<UserInfo, String> {

    /**
     * 检查是否有这个手机号码
     * @param phone
     * @return true:没有返回true flase:有返回Flase
     */
    UserInfo findByPhone(String phone);

    List<UserInfo> findByCity(String keyword);
}
